define(["require", "exports"], function (require, exports) {
    "use strict";
    var Base = (function () {
        function Base() {
            this.debug = true;
            this.AppX = window["AppX"] || {};
            this.root = window["AppX"].root || undefined;
        }
        Base.prototype.startup = function () {
        };
        Base.prototype.destroy = function () { };
        Base.prototype.log = function (message) {
            var optionalParams = [];
            for (var _i = 1; _i < arguments.length; _i++) {
                optionalParams[_i - 1] = arguments[_i];
            }
            if (this.debug === true) {
                console.log.apply(this, arguments);
            }
            else {
            }
        };
        Base.prototype.bug = function (message) {
            var optionalParams = [];
            for (var _i = 1; _i < arguments.length; _i++) {
                optionalParams[_i - 1] = arguments[_i];
            }
            if (this.debug === true) {
                console.error.apply(this, arguments);
            }
            else {
                if (this.AppX.runtimeConfig.Toast) {
                    this.AppX.runtimeConfig.Toast.show(message);
                }
            }
        };
        Base.prototype.alert = function (message) {
            if (message) {
                alert(message);
            }
        };
        return Base;
    }());
    return Base;
});
